from django.shortcuts import render_to_response
from por1.viewmodel import ArchivePerformanceIterator, DvSoShRatioIterator
from django.contrib.auth.decorators import login_required

@login_required
def archive_performance(request):
    
    return render_to_response(
                "por1/archiveperformance.html"
                , {
                   "performances_iterator": ArchivePerformanceIterator()
#                    "performances_by_years": performance_by_years
                })

@login_required
def dvshso_ratio(request):
    return render_to_response(
                "por1/dvshsoratio.html"
                , {
                   "dvratios_iterator": DvSoShRatioIterator() 
                })
